package com.diver.flinkdemo.dto.xxt;

import java.io.Serializable;

/**
 * @author guofy
 * @create 18/11/2 下午3:17
 * <p>
 * 异常统计信息
 **/
public class MessageStatisticsInfo implements Serializable {
    private static final long serialVersionUID = -5501793553585126695L;
    //sos次数
    private int sosNumber;
    //轨迹偏离次数
    private int deviationNumber;
    //长时间停留次数
    private int longStayNumber;
    //总异常次数
    private int totalNumber;

    //进入危险区域的次数
    private int accessDangerNumber;

    public int getAccessDangerNumber() {
        return accessDangerNumber;
    }
    public void setAccessDangerNumber(int accessDangerNumber) {
        this.accessDangerNumber = accessDangerNumber;
    }

    public int getSosNumber() {
        return sosNumber;
    }

    public void setSosNumber(int sosNumber) {
        this.sosNumber = sosNumber;
    }

    public int getDeviationNumber() {
        return deviationNumber;
    }

    public void setDeviationNumber(int deviationNumber) {
        this.deviationNumber = deviationNumber;
    }

    public int getLongStayNumber() {
        return longStayNumber;
    }

    public void setLongStayNumber(int longStayNumber) {
        this.longStayNumber = longStayNumber;
    }

    public int getTotalNumber() {
        return sosNumber + deviationNumber + longStayNumber + accessDangerNumber;
    }
    public void setTotalNumber(int totalNumber) {
        this.totalNumber = totalNumber;
    }
}
